//
//  Reply.swift
//  Gaoloumi
//
//  Created by Jasper on 4/1/16.
//  Copyright © 2016 Jasper. All rights reserved.
//

import UIKit
import AVOSCloud

let kReplyKeyContent: String = "content"              // 内容
let kReplyKeyContentImage: String = "contentImage"    // 图片 最多3张
let kReplyKeyIsDelete: String = "isDelete"            // 是否删除，避免误删除，可以恢复

let kReplyKeyReply:String = "reply"                // 回复上一个人的回复
let kReplyKeyCitys: String = "city"                // 所属城市  Pointers 存储关联
let kReplyKeyUser: String = "user"                 // 作者 发帖人 Pointers 存储关联
let kReplyKeyTopic: String = "topic"               // 回复的主题
let kReplyKeyUserName: String = "userName"         // 回复的主题
let kReplyKeyIsReported: String = "isReported"     // 是否被举报


class Reply: AVObject {

    @NSManaged var content: String?
    @NSManaged var contentImage: [AVFile]?
    @NSManaged var isDelete: Bool
    
    @NSManaged var reply: Reply?
    @NSManaged var city: City?
    @NSManaged var user: AVUser?
    @NSManaged var topic: Topic?
    @NSManaged var userName: String?
    @NSManaged var isReported: Bool
    
    static func parseClassName() -> String! {
        return "Reply"
    }
}
